# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=hare-cairo
pkgver=0_git20240217
_commit=3e5118a8fe4d0d0f4688e662be974d81b319fb32
pkgrel=0
pkgdesc="Hare interface to the cairo 2D graphics library"
url="https://codeberg.org/une/hare-cairo"
# Currently doesn't build on riscv64
arch="x86_64 aarch64" # hare
license="MPL-1.1"
makedepends="hare"
source="
	$pkgname-codeberg-$_commit.tar.gz::https://codeberg.org/une/hare-cairo/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}
sha512sums="
ebf1d108d40382218e349cc487b0c118615467cda4d44dac5de8938f500829d22de76db6de580c93a70d21fb58c9d7a7f65d76f96403ee5f3069afce01716242  hare-cairo-codeberg-3e5118a8fe4d0d0f4688e662be974d81b319fb32.tar.gz
"
